<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 创界科技</title>
    <style>
        /* 基础样式与变量定义 - 与主站保持一致 */
        :root {
            --primary: #FF6B6B;
            --secondary: #4ECDC4;
            --accent: #FFE66D;
            --dark: #292F36;
            --light: #F7FFF7;
            --border-width: 4px;
            --shadow-offset: 8px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Courier New', monospace;
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            padding: 20px;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 新野蛮主义核心样式类 */
        .neu-card {
            border: var(--border-width) solid var(--dark);
            border-radius: 12px;
            background-color: white;
            box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
            transition: all 0.2s ease;
        }

        .neu-card:hover {
            transform: translate(2px, 2px);
            box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0px var(--dark);
        }

        .neu-button {
            display: inline-block;
            padding: 12px 24px;
            border: var(--border-width) solid var(--dark);
            border-radius: 8px;
            background-color: var(--primary);
            color: var(--dark);
            font-weight: bold;
            text-decoration: none;
            box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .neu-button:hover {
            transform: translate(2px, 2px);
            box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0px var(--dark);
        }

        .neu-button.secondary {
            background-color: var(--secondary);
        }

        .neu-button.accent {
            background-color: var(--accent);
        }

        /* 布局样式 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            flex: 1;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            margin-bottom: 40px;
            border-bottom: var(--border-width) solid var(--dark);
        }

        .logo {
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary);
            text-shadow: 3px 3px 0px var(--dark);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 20px;
        }

        nav a {
            text-decoration: none;
            color: var(--dark);
            font-weight: bold;
            padding: 8px 16px;
            border: var(--border-width) solid transparent;
            transition: all 0.2s ease;
        }

        nav a:hover {
            border: var(--border-width) solid var(--dark);
            background-color: var(--accent);
        }

        section {
            margin-bottom: 80px;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 40px;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: "";
            display: block;
            width: 100px;
            height: 5px;
            background-color: var(--primary);
            margin: 15px auto 0;
        }

        /* 登录页面特定样式 */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 60vh;
            margin: 40px 0;
        }

        .login-card {
            width: 100%;
            max-width: 450px;
            padding: 40px;
            text-align: center;
        }

        .login-title {
            font-size: 2.2rem;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .login-subtitle {
            margin-bottom: 30px;
            color: #666;
        }

        .form-group {
            margin-bottom: 25px;
            text-align: left;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: var(--border-width) solid var(--dark);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
        }

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .forgot-password {
            color: var(--primary);
            text-decoration: none;
            font-weight: bold;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        .login-button {
            width: 100%;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 25px 0;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background-color: #ddd;
        }

        .divider-text {
            padding: 0 15px;
            color: #666;
        }

        .social-login {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .social-btn {
            flex: 1;
            padding: 10px;
            border: var(--border-width) solid var(--dark);
            border-radius: 8px;
            background-color: white;
            color: var(--dark);
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .social-btn:hover {
            background-color: var(--accent);
            transform: translate(2px, 2px);
        }

        .register-link {
            margin-top: 20px;
            color: #666;
        }

        .register-link a {
            color: var(--primary);
            font-weight: bold;
            text-decoration: none;
        }

        .register-link a:hover {
            text-decoration: underline;
        }

        /* 页脚样式优化 - 与主站保持一致 */
        footer {
            text-align: center;
            padding: 40px 0;
            border-top: var(--border-width) solid var(--dark);
            margin-top: 40px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 20px 0;
        }

        .footer-links a {
            color: var(--dark);
            text-decoration: none;
            font-weight: bold;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .login-card {
                padding: 30px 20px;
            }

            .social-login {
                flex-direction: column;
            }

            header {
                flex-direction: column;
                gap: 20px;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
            }

            .footer-links {
                flex-direction: column;
                gap: 15px;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <header>
            <div class="logo">创界科技</div>
            <nav>
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="about.html">关于我们</a></li>
                    <li><a href="products.html">产品</a></li>
                    <li><a href="services.html">服务</a></li>
                    <li><a href="news.html">新闻动态</a></li>
                    <li><a href="contact.html">联系我们</a></li>
                    <li><a href="job.html">岗位招聘</a></li>
                    <li><a href="login.html"
                            style="border: var(--border-width) solid var(--dark); background-color: var(--accent);">登录</a>
                    </li>
                </ul>
            </nav>
        </header>

        <div class="login-container">
            <div class="login-card neu-card">
                <h2 class="login-title">用户登录</h2>
                <p class="login-subtitle">登录您的创界科技账户</p>

                <form id="loginForm">
                    <div class="form-group">
                        <label for="username" class="form-label">用户名或邮箱</label>
                        <input type="text" id="username" class="form-input" placeholder="请输入用户名或邮箱" required>
                    </div>

                    <div class="form-group">
                        <label for="password" class="form-label">密码</label>
                        <input type="password" id="password" class="form-input" placeholder="请输入密码" required>
                    </div>

                    <div class="remember-forgot">
                        <div class="remember-me">
                            <input type="checkbox" id="remember">
                            <label for="remember">记住我</label>
                        </div>
                        <a href="forgot-password.html" class="forgot-password">忘记密码？</a>
                    </div>

                    <button type="submit" class="neu-button login-button">登录</button>
                </form>

                <div class="divider">
                    <span class="divider-text">或使用以下方式登录</span>
                </div>

                <div class="social-login">
                    <button class="social-btn">
                        <span>微信</span>
                    </button>
                    <button class="social-btn">
                        <span>企业微信</span>
                    </button>
                </div>

                <div class="register-link">
                    还没有账户？ <a href="register.html">立即注册</a>
                </div>
            </div>
        </div>

        <footer>
            <div class="logo">创界科技</div>
            <div class="footer-links">
                <a href="index.html">首页</a>
                <a href="about.html">关于我们</a>
                <a href="products.html">产品</a>
                <a href="services.html">服务</a>
                <a href="news.html">新闻动态</a>
                <a href="contact.html">联系我们</a>
                <a href="job.html">岗位招聘</a>
            </div>
            <p>地址：北京市海淀区科技园区创新大厦15层</p>
            <p>电话：010-12345678 | 邮箱：contact@chuangjie-tech.com</p>
            <p style="margin-top: 20px;">© 2023 创界科技 | 创新驱动未来</p>
        </footer>
    </div>

    <script>
        // 表单提交处理
        document.addEventListener('DOMContentLoaded', function () {
            const loginForm = document.getElementById('loginForm');

            loginForm.addEventListener('submit', function (e) {
                e.preventDefault();

                // 简单的表单验证
                const username = document.getElementById('username').value;
                const password = document.getElementById('password').value;

                if (!username || !password) {
                    alert('请填写用户名和密码');
                    return;
                }

                // 模拟登录过程
                alert('登录请求已提交，正在验证...');

                // 在实际应用中，这里应该发送登录请求到服务器
                // 这里使用setTimeout模拟异步请求
                setTimeout(function () {
                    // 假设登录成功
                    alert('登录成功！即将跳转到用户中心...');
                    // 在实际应用中，这里应该跳转到用户中心或之前访问的页面
                    // window.location.href = 'dashboard.html';
                }, 1000);
            });

            // 社交登录按钮点击事件
            const socialBtns = document.querySelectorAll('.social-btn');
            socialBtns.forEach(btn => {
                btn.addEventListener('click', function () {
                    const platform = this.textContent.trim();
                    alert(`即将跳转到${platform}登录页面`);
                    // 在实际应用中，这里应该跳转到相应的OAuth认证页面
                });
            });
        });
    </script>
</body>

</html>